package com.mingyuan.library.domain.lending.book.repository;

import com.mingyuan.library.domain.lending.book.model.entity.Book;
import com.mingyuan.library.domain.lending.book.model.valueobject.BookId;
import io.vavr.control.Option;

import java.util.UUID;

public interface BookRepository {

    /**
     * 根据图书ID获取图书信息
     * @author yangzk
     * @param bookId 图书ID
     * @date 2024/1/18 13:46
     **/
    Option<Book> findBy(UUID bookId);
    /**
     *
     * @author yangzk
     * @param
     * @date 2024/1/18 13:46
     * @return
     **/
    void save(Book book);
}
